<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {if request()->request('BasicinfoID') == 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Basicinfoid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-BasicinfoID" data-rule="required" min="0" data-source="resume/basicinfo/index" data-primary-key="BasicinfoID" data-field="Name" data-search-field="Name" data-format-item="{Name} - {Remark}" class="form-control selectpage" name="row[BasicinfoID]" type="text" value="">
        </div>
    </div>
    {else}
    <input type="hidden" value="{:request()->request('BasicinfoID')}" name="row[BasicinfoID]">
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-Date" data-rule="required" placeholder="{:__('Startdate')} - {:__('Enddate')}" class="form-control datetimerange" data-locale='{"format":"YYYY-MM-DD"}' data-use-current="true" name="row[Date]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-Title" data-rule="required" class="form-control" name="row[Title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Duty')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-Duty" data-rule="required" class="form-control" name="row[Duty]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-Description" data-rule="required" class="form-control" name="row[Description]" cols="30" rows="8"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
